#!/bin/bash
kill $(pgrep screen)
chmod +x /var/www/pmpsetup/files/startSmap.sh
screen -S -X smapScreen quit
screen -dmS smapScreen
sleep 1
screen -S smapScreen -p 0 -X exec /var/www/pmpsetup/files/startSmap.sh
echo "Content-type: text/html"
echo ""
echo "Started sMAP source"
exit 0

